package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import java.util.LinkedHashSet;
import java.util.List;

public interface MenuDao {
    public LinkedHashSet<Menu> findByRoleId(Integer roleId);

    public List<Menu> findMenu();

    public List<Menu> findChildrenByPrentMenuId(Integer menuId);
    public Page<Menu> selectByCondition(String queryString);

    public void delete(Integer id);


    public void add(Menu menu);

    public void edit(Menu menu);

    public Integer findCountByParentMenuId(Integer parentMenuId);

    public String findPathById(Integer parentMenuId);

    public void deleteRoleMenuAssociationByMenuId(Integer id);

    public Menu findByMenuId(Integer id);

    public String findMaxPath();

    public Integer findMaxPriority();


    public Integer findParentMenuName(Integer childrenId);

    public Menu findMenuById(Integer id);

    //菜单名校验
    public Integer checkName(String name);

}
